package cn.edu.hrbcu.es.invigilatemanagerment.service;

import cn.edu.hrbcu.es.invigilatemanagerment.pojo.Permission;
import cn.edu.hrbcu.es.invigilatemanagerment.pojo.RolePermission;

import java.util.List;

public interface IPermissionService {
    Integer insertPermission(Permission permission);
    Integer deletePermissionByPrimaryId(Integer permissionId);
    Integer updatePermissionByPrimaryId(Permission permission);
    List<Permission> queryPermissionsByIds(List<Integer> ids);
    Permission queryPermissionById(Integer id);
    List<Permission> queryAllPermission();
    List<Permission> selectPermissionsByTeacherId(Integer teacherId);

    int queryPermissionCount();

    List<Permission> queryPermissionsByPage(int pageNow, int pageSize);
}
